const {connect,mongoose} = require('../db/mongodb');

let UserSchema = new mongoose.Schema({
    username: String,
    password: String,
    nickname: String,
    time: { type: Date, default: Date.now }
});


// 编译模型
let UserModel = mongoose.model('User', UserSchema);

module.exports = UserModel;
